<template>
  <div @click="$emit('onClick')">
      <img :src="require('../assets/img/'+icon)" :alt="icon" v-if="icon">
      <span>{{content}}</span>
  </div>
</template>

<script>
export default {
    props:{
        content:{
            default:''
        },
        icon:{
            default:''
        }
    }
}
</script>

<style lang="scss" scoped>
div{
    display: flex;
    justify-content: center;
    align-items: center;
    height: .3rem;
    width: 1.48rem;
    background: rgba(63, 91, 113, .7);
    border-radius: .03rem;
    color: #7EA1BD;
    font-size: .13rem;
    img{
        height: .17rem;
        width: .17rem;
        margin-right: .08rem;
    }
}
</style>